WaitNextEvent
loop and code is very basic. We have noticed that other
background applications don't get any time, even if we use
WaitNextEvent
and make sure MoviesTask
does not spend too
much time playing the movie. However, if we add code to track the
updateEvents
with BeginUpdate
and EndUpdate
the
problem is gone. Why?
By calling BeginUpdate/EndUpdate
or otherwise taking care of the
update event inside your WaitNextEventLoop
, you allow yielding to
other applications.
See Technote TB 37
Pending Update Perils, which discusses this situation
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help